package chapter_10_decorator.classic;

/**
 * @author yaochenglong
 * @date 2017/10/19
 */
public class Decorator2 implements IDecorotor {

    private IComponent component;

    public Decorator2(IComponent component) {
        this.component = component;
    }

    @Override
    public void doSomething() {
        System.out.println("Decorator2 before do...");
        component.doSomething();
        System.out.println("Decorator2 before after...");
    }
}
